var reset1=document.getElementById('reset1');
var text1=document.getElementById('text1');
var password1=document.getElementById('password1');
reset1.onclick=function () {

    if(confirm("确定重置吗？")==true)
    {
        text1.value="";
        password1.value="";
    }
}


var login1=document.getElementById('login1');
login1.onclick=function () {
    if(text1.value=="")
    {
        alert('用户名不得为空。');
    }else if(password1.value==""){
        alert("密码不能为空");
    }
}

